home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / e / eiffel.lha / flc / source / entity.e < prev    next >
Encoding:
Text File  |  1995-12-27  |  1.1 KB  |  37 lines

  1.  
  2. -> Copyright © 1995, Guichard Damien.
  3.  
  4. -> Eiffel entities (most general software-abstraction)
  5.  
  6. -> The Eiffel language and method is object-oriented, so should be the
  7. -> compiler. This means that the units of the compiler are of the same
  8. -> nature as the units of software development: they are data abstraction too.
  9. -> These are called software-abstractions. Among them, entity is the most
  10. -> general software-abstraction. Any part or construct of the Eiffel language is
  11. -> said to be an entity, classes, features, constant and variable attributes,
  12. -> routines, routine arguments, local entities are all eiffel entities.
  13.  
  14. OPT MODULE
  15. OPT EXPORT
  16.  
  17. MODULE '*ame'
  18. MODULE '*class'
  19.  
  20. OBJECT entity
  21.   name:PTR TO CHAR  -> name of the entity
  22.   type:PTR TO class -> type of the entity
  23. ENDOBJECT
  24.  
  25. -> Entity value adresse mode
  26. -> Use connected with AME (Abstract Machine for Eiffel)
  27. PROC access() OF entity IS M_NONE
  28.  
  29. -> Index for access to entity value
  30. -> Use connected with AME (Abstract Machine for Eiffel)
  31. PROC index() OF entity IS 0
  32.  
  33. -> Vector for routine call
  34. -> Use connected with AME (for routines only)
  35. PROC vector() OF entity IS 0
  36.  
  37.